/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-06
 * Time:16:38
 */
public abstract class Animal {
    private String name;
    private int age;
    private  String sex;
     Animal(String name,int age,String sex)
     {
         this.name=name;
         this.age=age;
         this.sex=sex;
     }
    public abstract void action();
    public abstract  void eat();
    public  void show()
    {
        System.out.println("name:"+name+"\nage:"+age+"\nsex："+sex);
    }
}
